<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.Map" %>
<%--
  Created by IntelliJ IDEA.
  User: limu
  Date: 2019/4/13
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登陆界面</title>
</head>
<body>
<%
    Map<String,String> login = (Map<String, String>)session.getAttribute("Login");
    if(login == null) {
%>
<a href="/login/dgut">登陆</a>
<%
}else{
%>
<a href=" /logoutServlet">登出</a>
<%
    }
%>
<hr><%

    if(login != null)
    {
        out.println("学号:"+login.get("username")+"<br>");
        out.println("姓名:"+login.get("name")+"<br>");
        out.println("类别:"+login.get("group")+"<br>");
        out.println("学院:"+login.get("faculty_title")+"<br>");
        out.println("faculty:"+login.get("faculty")+"<br>");
        out.println("wx_openid:"+login.get("wx_openid")+"<br>");
        out.println("openid:"+login.get("openid")+"<br>");
    }
%>
</body>
</html>